#ifndef MAIN_H
#define	MAIN_H
#include "config.h"


#define UpKey					((uint8_t)0x0a)
#define DownKey				((uint8_t)0x0b)
#define LeftKey				((uint8_t)0x0c)
#define RightKey			((uint8_t)0x0d)
#define EscKey				((uint8_t)0x0e)
#define OkKey					((uint8_t)0x0f)


#define deldet 0x1d
#define ENTER  0x24
#define ESC    0x22
#define LEFT   0x2d
#define DOWN   0x25
#define UP     0x2a
#define RIGHT  0x2b

#define xn_ENTER 0x16




#define F1  0x01
#define F2  0x11
#define F3  0x09
#define F4  0x21
#define F5  0x29


#define menu  0x03
#define wave  0x0a
#define EQ  0x02
#define prscrn  0x12
#define folder  0x1a
#define help  0x19

#define  num_1 0x0b
#define  num_2  0x13
#define  num_3  0x23
#define  num_4  0x0c
#define  num_5  0x2c
#define  num_6  0x1b
#define  num_7  0x0d
#define  num_8  0x14
#define  num_9  0x1c
#define  num_0  0x15
#define	 Shift  0x0e
#define	 Shift_3S  0x21

#define set  0x04
#define hold  0x06
#define backlight  0x05

typedef uint8_t (*pLie_SetFunc_T[])(void);
typedef void (*pHang_SetFunc_T[])(uint8_t);

#endif